

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

import ij.ImagePlus;
import ij.io.Opener;
import java.lang.invoke.MethodHandles;
/**
 *
 * @author cloudnine
 */
public class ImageRead {

       public static void main(String[] args) {
           String fileName = ".\\test_image.tif";
           Opener Image = new Opener();
           ImagePlus img = Image.openImage(fileName);
           img.setDisplayRange(img.getDisplayRangeMin(), img.getDisplayRangeMax());
           img.show();
           
           Maliang_initial_ maliang = new Maliang_initial_();
           maliang.setup(null, img);
           maliang.run(img.getProcessor());
           
           
           //JFrame frame = new JFrame();
           //frame.setVisible(true);      
    }
}
